import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './action'
import { getToken} from '../assets/js/auth'
import getters from "./getters";
Vue.use(Vuex);

const state = {
  isLogin: false,   // 是否登录
  userInfo: null, // 用户信息
  token: getToken('loginToken')
};


export default new Vuex.Store({
    state,
    actions,
    mutations,
    getters,

})







